<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
  <!-- 这个页面中不要包含有js!!! -->
  </head>  
  <body>
  	<!-- 验证还是jquery-validation好用，这里省事没用 -->
	<form class="auform" id="companyForm" method="post">
		<input type="hidden" name="companyId" id="companyId" />
		<table class="autable">
			<tr>
				<td class="autd1" style="width:130px">公司/代理人名称：</td>
				<td class="autd2"><input name="companyName" style="width:150px" validType="length[2,50]" class="easyui-validatebox txt" required="true"><span class="red">*</span></td>
			</tr>
			<tr>
				<td class="autd1" style="width:130px">OFFICE：</td>
				<td class="autd2"><input name="office" style="width:150px" validType="length[4,10]" class="easyui-validatebox txt" ></td>
			</tr>
			<tr>
				<td class="autd1" style="width:130px">IATA：</td>
				<td class="autd2"><input name="iata" style="width:150px" validType="length[4,10]" class="easyui-validatebox txt"></td>
			</tr>
			<tr>
				<td class="autd1">类型：</td>
				<td class="autd2"><select class="easyui-combobox" name="companyType" id="companyType" panelHeight="auto" style="width:150px" editable="false">
						<option value="${constant.AGENT}">代理人</option>
						<option value="${constant.AIRPORT}">航空公司</option>
						<option value="${constant.OTHER}">其他</option>
					</select>
				</td>
			</tr>
			<tr>
				<td class="autd1">联系电话：</td>
				<td class="autd2"><input name="personTel" style="width:150px" validType="length[6,20]" class="easyui-validatebox txt"></td>
			</tr>
			<tr>
				<td class="autd1">联系人：</td>
				<td class="autd2"><input name="personName" style="width:150px" validType="length[2,30]" class="easyui-validatebox txt"></td>
			</tr>
			<tr>
				<td class="autd1">手机号码：</td>
				<td class="autd2"><input name="personPhone" style="width:150px" validType="length[7,20]" class="easyui-validatebox txt" required="true"><span class="red">*</span></td>
			</tr>
			<tr>
				<td class="autd1">备注：</td>
				<td class="autd2"><textarea name="remark" class="txtarea" style="height: 100px;width: 300px;"></textarea></td>
			</tr>
			<tr>
				<td class="autd3" colspan="4">
					<a href="#" id="btn-back" onclick="$('#MyPopWindow').window('close');" class="easyui-linkbutton" iconCls="icon-cancel">取消</a>
					<a href="#" id="btn-add" onclick="addOrUpdate('${param.update}');" class="easyui-linkbutton" iconCls="icon-save">保存</a>
				</td>
			</tr>
		</table>
	</form>
  </body>
</html>
